From a0e8cd5baca66f1e575c7af401582b1f77ac1295 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 21 Jan 2019 13:49:20 +0800 Subject: [PATCH] testsuite/gtk/slicelistmodel.c: Avoid VLAs Unfortunately VLA's are unlikely to be supported on any Visual Studio versions, although it is C99, so replace it with g_newa() calls. --- testsuite/gtk/slicelistmodel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/gtk/slicelistmodel.c b/testsuite/gtk/slicelistmodel.c index 960133c805..01717c8f51 100644 --- a/testsuite/gtk/slicelistmodel.c +++ b/testsuite/gtk/slicelistmodel.c @@ -74,7 +74,7 @@ splice (GListStore *store, guint *numbers, guint added) { - GObject *objects[added]; + GObject **objects = g_newa (GObject *, added); guint i; for (i = 0; i < added; i++) -- 2.30.2